package com.wongsir.step4.tiny_ioc;

import java.util.HashMap;
import java.util.Map;

import com.wongsir.step4.tiny_ioc.io.ResourceLoader;

/**
 * 从配置文件中加载bean
 * @author wongsir
 * @date 2018年9月14日
 */
public abstract class AbstractBeanDefinitionReader implements BeanDefinitionReader{

	private Map<String,BeanDefinition> registry;
	
	private ResourceLoader resourceLoader;

	protected AbstractBeanDefinitionReader(ResourceLoader resourceLoader) {
		this.registry = new HashMap<>();
		this.resourceLoader = resourceLoader;
	}

	public Map<String, BeanDefinition> getRegistry() {
		return registry;
	}

	public ResourceLoader getResourceLoader() {
		return resourceLoader;
	}

}
